package apirouter

import (
	"slgw_web/api"

	"openzbox.com/frame/echo"
)

func InitXAPIRouter(group *echo.Group) {
	router := group.Group("/xapi") //, middleware.AuthMiddleware()

	router.GET("/loukoudata", api.LouKouRealTimeData)
	router.GET("/dmesg", api.GetDmesg)
	//系统信息
	router.GET("/sysinfo", api.Sysinfo)
	//网络配置
	router.GET("/netfaces", api.GetNetInfo)
	//系统复位
	router.POST("/xapi/reboot", api.RebootSystem)
}
